@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2&family=Roboto&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.7;
}
audio {
    visibility: hidden;
}
nav {
    background-color: rgb(209, 235, 157);
    color: rgb(0, 0, 0);
    height: 65px;
    font-size: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.gameContainer { 
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.container {
    display: grid;
    grid-template-rows: repeat(3, 10vw);
    grid-template-columns: repeat(3, 10vw);
    font-family: 'Roboto', sans-serif;
    position: relative;
    width: 30vw;
    height: 30vw;
}

.box {
    border: 2px solid black;
    font-size: 8vw;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.box:hover {
    background-color: rgb(242, 234, 250);
}

.info {
    font-size: 1.5rem;
    padding: 5px;
    border: 5px solid;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.gameInfo {
    position: relative;
    padding: 10px;
    font-family: 'Baloo Bhaina 2', cursive;
    font-weight: bold;
    text-align: center;
}

.gameInfo h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.imgbox img {
    width: 0px;
    transition: width 1s ease-in-out;
    position: absolute;
    bottom: 10%;
    right: 10%;
}

.br-0 {
    border-right: 0;
}

.bl-0 {
    border-left: 0; 
}

.bt-0 {
    border-top: 0;
}

.bb-0 {
    border-bottom: 0;
}

#reset {
    margin-top: 20px;
    padding: 5px 20px;
    background: #f3e7f9;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Baloo Bhaina 2';
    font-size: 1rem;
    font-weight: bolder;
    width: 100px;
    height: 40px;
}

.line {
    background-color: black;
    height: 3px;
    width: 0;
    position: absolute;
    background-color: #911d91;
    transition: width 1s ease-in-out;
}

@media screen and (max-width: 950px) {
    nav{
        margin-top: 30px;
    }
    .gameContainer {
        margin-top: 20px;
    }

    .gameInfo h1 {
        font-size: 1.5rem;
    }

    .container {
        grid-template-rows: repeat(3, 20vw);
        grid-template-columns: repeat(3, 20vw);
        width: 60vw;
        height: 60vw;
    }

    .box {
        font-size: 6vw;
    }

    .info {
        font-size: 1.2rem;
    }

    #reset {
        font-size: 0.9rem;
        height: 30px;
    }
}

@media screen and (max-width: 600px) {
    nav{
        margin-top: 30px;
    }
    nav ul li{
        font-size: 0.7em;
    }
    .container {
        grid-template-rows: repeat(3, 30vw);
        grid-template-columns: repeat(3, 30vw);
        width: 90vw;
        height: 90vw;
    }

    .box {
        font-size: 8vw;
    }

    .gameInfo h1 {
        font-size: 1.2rem;
    }

    .info {
        font-size: 1rem;
    }

    #reset {
        font-size: 0.8rem;
        width: 80px;
        height: 30px;
    }
}
